import { get, post } from "../util/request";

// 注册接口封装
export const reqRegister = (data) => post("/api/v1/auth/reg", data);
// 登录接口封装
export const reqLogin = (data) => post("/api/v1/auth/login", data);
//获取用户信息
export const getuser = () => get("/api/v1/users/info");
//修改用户信息
export const setuser = (data) => post("/api/v1/users/change_pwd", data);
//修改个人信息
export const setuserinfo = (data) => post("/api/v1/users/change_info", data);
//上传图片
export const imgUpdateAPI = (data) => post("/api/v1/common/file_upload", data);
